mylist = []

flag = '>>>'

while flag != 'CEASE':
    inp = input('?')
    flag = inp
    if flag == 'CEASE':
        break
    mylist.append(inp)

while flag != 'Yes':
    inp = input('Enter search term: ')
    found = False
    for index in range(len(mylist)):
        if inp == mylist[index]:
            found = True
            break
        else:
            found = False

    if found:
        print('Found it!')
    else:
        print('Not found!')

    flag = input('Do you want to keep searching? ')
    if flag == 'NO' or flag =='no':
        print('Goodbye!')
        break
